public class Test1 {
    public static void main(String[] args) {
        A a = new A() {
            @Override
            public void a() {

            }
        };
    }
}

interface  A{
    public void a();
}
